<!--<div class="menurighttitle">TIN TỨC MỚI NHẤT</div>--> 
<div class="menutitle">TIN TỨC MỚI NHẤT</div> 
<?php
// include lastRSS
include "lastRSS.php";
// Create lastRSS object
$rss = new lastRSS;

// Set cache dir and cache time limit (1200 seconds)
// (don't forget to chmod cahce dir to 777 to allow writing)
$rss->cache_dir = 'temp';
$rss->cache_time = 1200; 

for($i = 0; isset($url[$i]); $i++) {
$rssurl = str_replace('&', '&amp;', $url[$i]);
 }
 
 if ($rs = $rss->get($rssurl)){
 ?>
<div class="menuright tintucmoinhat"> 
    <marquee direction="up" scrollamount="1" scrolldelay="30" onmouseover="this.stop()" onmouseout="this.start()" height="200"> 
        <?php foreach($rs['items'] as $item) { ?>
            <p><img src="catalog/view/theme/simsodep/image/tintuc.gif"> <a title="<?php echo $item['title']; ?>" alt="sim so dep, sim dep, sim so, simsodep, so dep, sim gia re, sim so dep gia re, sim dien thoai, sim viettel " target="_blank" href="<?php echo $item[link] ?>"><?php echo $item['title']; ?></a><br><br></p> 
        <?php } ?>
    </marquee> 
    <br><br> 
    <div align="center"></div> 
</div> 
<?php

        }
else {
    echo "Error: It's not possible to reach RSS file...\n";
}
?>

<div class="menurightbottom"></div> 